package factory.pizzas;

/**
 * @author jacob
 * @Date 2020/12/19 23:24
 */
public class PizzaTestDrive {

    public static void main(String[] args) {
        SimplePizzaFactory factory = new SimplePizzaFactory();
        PizzaStore store = new PizzaStore(factory);

        // 预定一个芝士pizza
        Pizza pizza = store.orderPizza(PizzaType.CHEESE);
        System.out.println("We ordered a " + pizza.getName() + "\n");
        System.out.println(pizza);

        // 预定一个素菜pizza
        pizza = store.orderPizza(PizzaType.VEGGIE);
        System.out.println("We ordered a " + pizza.getName() + "\n");
        System.out.println(pizza);
    }
}
